package Cafezam;

import java.util.Scanner;

public class J10Return {
	//return문을 사용하는 메서드
	public static void main(String[] args)
	{
		int x,y;//사칙연산할 입력값
		int sum,minus,multiple,divide;
		
		Scanner sc=new Scanner(System.in);
		System.out.println("x,y 값을 입력하세요");
		x=sc.nextInt();
		y=sc.nextInt();
		sum=getsum(x,y);
		minus=getminus(x,y);
		multiple=getmultiple(x,y);
		divide=getdivide(x,y);
		
		System.out.println(x);
		System.out.println(y);
		System.out.println(sum);
		System.out.println(minus);
		System.out.println(multiple);
		System.out.println(divide);
		
		sc.close();
		
	}//main
	private static int getdivide(int x, int y) {
		return x/y;
	}
	private static int getmultiple(int x, int y) 
	{
    	return x*y;
	}
	private static int getsum(int x,int y)
	{
		return x+y;
	}
	private static int getminus(int x,int y)
	{		
		return x-y;
	}

}
